﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Dsl.Ped.Framework.Projections.ObjectProjections.Headered"
    xmlns:converters="clr-namespace:Dsl.Ped.Common.Converters;assembly=DSLCommon">
    
    <Style TargetType="{x:Type local:HeaderedProjection}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:HeaderedProjection}">
                    <StackPanel Orientation="{TemplateBinding Orientation}"
                                Margin="{TemplateBinding Margin}"
                                Background="{TemplateBinding Background}">
                            <ContentPresenter 
                                Name="PART_HeaderProjection"
                                DockPanel.Dock="Left"
                                VerticalAlignment="{TemplateBinding VerticalHeaderAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalHeaderAlignment}"
                                Style="{TemplateBinding HeaderStyle}">
                            </ContentPresenter>
                        <ContentPresenter x:Name="PART_Content"
                                          VerticalAlignment="Center"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>